package com.wbhz.service;

import java.util.List;

import com.wbhz.entity.BankCard;
import com.wbhz.entity.Message;
import com.wbhz.entity.User;
import com.wbhz.entity.Vip;

public interface UserService {
	int insertUser(User user);
	int insertRight(User user);
	User selectUserByEmail(User user);
	User selectUserByEmailAndPwd(User user);
	int updateUserDetail(User user);
	int updatePwd(String userPwd, String userEmail);
	int updateMoney(int userId, int postReward);
	List<User> selectUserIdAndName();
	List<User> selectUserByReply(int postId);
	int insertBankCard(String userName, String random);
	List<Message> selectUserMsg(int userId);
	Message selectMsgDetail(int msgId);
	int selectUIdByUName(String byReplyName);
	List<User> selectReplyUList(int postId);
	BankCard selectBankCard(int userId);
	Integer selectB_CByNumAndPwd(String bankcardNumber, String bankcardPwd);
	void subB_Cbalance(String bankcardNumber, int balance);
	int selectURight(int userId);
	void subB_CBalance2(int balance, int userId);
	void subUMoney(int userId, int balance);
	
	Integer isEnougMoney(int userId, int balance);
	Integer isEnougBalance(int userId, int balance);
	
	int updateURight(int userId);
	int insertVipMonth(int userId, int months);
	
	Vip selectVipDetail(int userId);
}	
